package com.springboot.dto;

public class PatientDetails {
    private String patientName;

    private String logoLink;

    private String bookDate;

    private String sickSketch;

    private String sickInfo;

    public PatientDetails() {
    }

    public PatientDetails(String patientName, String logoLink, String bookDate, String sickName, String sickSketch, String sickInfo) {
        this.patientName = patientName;
        this.logoLink = logoLink;
        this.bookDate = bookDate;
        this.sickSketch=sickSketch;
        this.sickInfo=sickInfo;
    }

    public String getPatientName() {
        return patientName;
    }

    public void setPatientName(String patientName) {
        this.patientName = patientName;
    }

    public String getLogoLink() {
        return logoLink;
    }

    public void setLogoLink(String logoLink) {
        this.logoLink = logoLink;
    }

    public String getBookDate() {
        return bookDate;
    }

    public void setBookDate(String bookDate) {
        this.bookDate = bookDate;
    }

    public String getSickSketch() { return sickSketch; }

    public void setSickSketch(String sickSketch) { this.sickSketch = sickSketch; }

    public String getSickInfo(){ return sickInfo; }

    public void setSickInfo(String sickInfo) { this.sickInfo = sickInfo; }

    //封装json格式字符串
    @Override
    public String toString() {
        if(sickInfo!=null)
        {
            sickInfo = sickInfo.replaceAll("", "");
        }
        if(logoLink!=null)
        {
            logoLink = logoLink.replaceAll("", "");
        }
        return "{" +
                "\"logoLink\":\"" + logoLink + '\"' +
                ", \"sickSketch\":\"" + sickSketch + '\"' +
                ", \"sickInfo\":\""+ sickInfo + '\"' +
                '}';
    }
}
